package com.loongtech.bi.entity.flow;

import java.io.Serializable;

public class AddcashAndConsumeRankModel implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3860047670353390451L;
	
	private Long addcashIndex; //充值排序
	private String addcashServerid; //充值区服
	private String addcashUserid; //充值用户id
	private Long wholecashadd; //全部充值
	private Long consumeIndex; //消费排序
	private Integer comnsumeCurrencytype; //消费货币类型
	private String consumeUserid; //消费用户id
	private Long wholeconsume; //全部消费
	
	public Long getAddcashIndex() {
		return addcashIndex;
	}
	public void setAddcashIndex(Long addcashIndex) {
		this.addcashIndex = addcashIndex;
	}
	public String getAddcashServerid() {
		return addcashServerid;
	}
	public void setAddcashServerid(String addcashServerid) {
		this.addcashServerid = addcashServerid;
	}
	public String getAddcashUserid() {
		return addcashUserid;
	}
	public void setAddcashUserid(String addcashUserid) {
		this.addcashUserid = addcashUserid;
	}
	public Long getWholecashadd() {
		return wholecashadd;
	}
	public void setWholecashadd(Long wholecashadd) {
		this.wholecashadd = wholecashadd;
	}
	public Long getConsumeIndex() {
		return consumeIndex;
	}
	public void setConsumeIndex(Long consumeIndex) {
		this.consumeIndex = consumeIndex;
	}
	public Integer getComnsumeCurrencytype() {
		return comnsumeCurrencytype;
	}
	public void setComnsumeCurrencytype(Integer comnsumeCurrencytype) {
		this.comnsumeCurrencytype = comnsumeCurrencytype;
	}
	public String getConsumeUserid() {
		return consumeUserid;
	}
	public void setConsumeUserid(String consumeUserid) {
		this.consumeUserid = consumeUserid;
	}
	public Long getWholeconsume() {
		return wholeconsume;
	}
	public void setWholeconsume(Long wholeconsume) {
		this.wholeconsume = wholeconsume;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((addcashIndex == null) ? 0 : addcashIndex.hashCode());
		result = prime * result
				+ ((addcashServerid == null) ? 0 : addcashServerid.hashCode());
		result = prime * result
				+ ((addcashUserid == null) ? 0 : addcashUserid.hashCode());
		result = prime
				* result
				+ ((comnsumeCurrencytype == null) ? 0 : comnsumeCurrencytype
						.hashCode());
		result = prime * result
				+ ((consumeIndex == null) ? 0 : consumeIndex.hashCode());
		result = prime * result
				+ ((consumeUserid == null) ? 0 : consumeUserid.hashCode());
		result = prime * result
				+ ((wholecashadd == null) ? 0 : wholecashadd.hashCode());
		result = prime * result
				+ ((wholeconsume == null) ? 0 : wholeconsume.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AddcashAndConsumeRankModel other = (AddcashAndConsumeRankModel) obj;
		if (addcashIndex == null) {
			if (other.addcashIndex != null)
				return false;
		} else if (!addcashIndex.equals(other.addcashIndex))
			return false;
		if (addcashServerid == null) {
			if (other.addcashServerid != null)
				return false;
		} else if (!addcashServerid.equals(other.addcashServerid))
			return false;
		if (addcashUserid == null) {
			if (other.addcashUserid != null)
				return false;
		} else if (!addcashUserid.equals(other.addcashUserid))
			return false;
		if (comnsumeCurrencytype == null) {
			if (other.comnsumeCurrencytype != null)
				return false;
		} else if (!comnsumeCurrencytype.equals(other.comnsumeCurrencytype))
			return false;
		if (consumeIndex == null) {
			if (other.consumeIndex != null)
				return false;
		} else if (!consumeIndex.equals(other.consumeIndex))
			return false;
		if (consumeUserid == null) {
			if (other.consumeUserid != null)
				return false;
		} else if (!consumeUserid.equals(other.consumeUserid))
			return false;
		if (wholecashadd == null) {
			if (other.wholecashadd != null)
				return false;
		} else if (!wholecashadd.equals(other.wholecashadd))
			return false;
		if (wholeconsume == null) {
			if (other.wholeconsume != null)
				return false;
		} else if (!wholeconsume.equals(other.wholeconsume))
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return "AddcashAndConsumeRankModel [addcashIndex=" + addcashIndex
				+ ", addcashServerid=" + addcashServerid + ", addcashUserid="
				+ addcashUserid + ", wholecashadd=" + wholecashadd
				+ ", consumeIndex=" + consumeIndex + ", comnsumeCurrencytype="
				+ comnsumeCurrencytype + ", consumeUserid=" + consumeUserid
				+ ", wholeconsume=" + wholeconsume + "]";
	}
}
